package com.sikadwafastdaisfondturbo.pretloan.weight.seekbar;

import android.content.Context;
import android.graphics.Color;
import android.graphics.drawable.Drawable;
import android.view.View;

public class BuilderParams {
    Context mContext;
    //seekBar
    int mSeekBarType = 0;
    float mMax = 100;
    float mMin = 0;
    float mProgress = 0;
    boolean mClearPadding = false;
    boolean mIsFloatProgress = false;
    //indicator
    int mIndicatorType = 0;
    boolean mShowIndicator = true;
    int mIndicatorColor = Color.parseColor("#FF4081");
    int mIndicatorTextColor = Color.parseColor("#FFFFFF");
    int mIndicatorTextSize;
    View mIndicatorCustomView = null;
    View mIndicatorCustomTopContentView = null;
    //track
    int mBackgroundTrackSize;
    int mProgressTrackSize;
    int mBackgroundTrackColor = Color.parseColor("#D7D7D7");
    int mProgressTrackColor = Color.parseColor("#FF4081");
    boolean mTrackRoundedCorners = true;
    //tick
    int mTickNum = 5;
    int mTickType = 1;
    int mTickSize;
    int mTickColor = Color.parseColor("#FF4081");
    boolean mTickHideBothEnds = false;
    boolean mTickOnThumbLeftHide = false;
    Drawable mTickDrawable = null;
    //text
    int mTextSize;
    int mTextColor = Color.parseColor("#FF4081");
    String mLeftEndText = null;
    String mRightEndText = null;
    CharSequence[] mTextArray = null;
    //text type
    boolean mTextInt = true;
    //thumb
    int mThumbColor = Color.parseColor("#FF4081");
    int mThumbSize;
    Drawable mThumbDrawable = null;
    boolean mThumbProgressStay = false;

    //是否拦截触摸事件 默认false
    boolean mInterceptTouch = false;

    BuilderParams(Context context) {
        this.mContext = context;
        mIndicatorTextSize = IndicatorUtils.sp2px(mContext, 13);
        mBackgroundTrackSize = IndicatorUtils.dp2px(mContext, 2);
        mProgressTrackSize = IndicatorUtils.dp2px(mContext, 2);
        mTickSize = IndicatorUtils.dp2px(mContext, 8);
        mTextSize = IndicatorUtils.sp2px(mContext, 13);
        mThumbSize = IndicatorUtils.dp2px(mContext, 18);
    }
}
